package com.zh.work.entity.trans;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.zh.common.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@ApiModel("交易管理消息通知实体类")
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("notify_offical_trans")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class NotifyOfficeTransEntity extends BaseEntity{
  private static final long serialVersionUID = 8586430109511163607L;
  @ApiModelProperty(value = "主键", name = "id")
  @TableId(value = "id", type = IdType.AUTO)
  private Long id;
  @ApiModelProperty(value = "交易类型(1-传统POS 2-MPOS 3-二维码 4-网关 5-快捷)", name = "transType")
  private Integer transType;
  @ApiModelProperty(value = "机构号", name = "branchno")
  @TableField(value = "branchno")
  private String branchNo;
  @ApiModelProperty(value = "机构名称", name = "branchName")
  private String branchName;
  @ApiModelProperty(value = "商户号", name = "merchNo")
  @TableField(value = "merchno")
  private String merchNo;
  @ApiModelProperty(value = "商户名称", name = "merchName")
  private String merchName;
  @ApiModelProperty(value = "交易流水号", name = "orderno")
  @TableField(value = "orderno")
  private String orderNo;
  @ApiModelProperty(value = "交易金额", name = "amount")
  private Float amount;
  @ApiModelProperty(value = "已发送次数", name = "sendCount")
  private Integer sendCount;
  @ApiModelProperty(value = "通知状态(0-未通知 1-无需通知 2-通知成功  3-通知失败)", name = "notifyStatus")
  private Integer notifyStatus;
  @ApiModelProperty(value = "上次通知时间", name = "lastTime")
  private String lastTime;
  @ApiModelProperty(value = "创建时间", name = "addTime")
  private String addTime;
  @ApiModelProperty(value = "业务类型(1-借记交易 2-贷记交易)", name = "bizType")
  private Integer bizType;

}
